cmake_minimum_required(VERSION 3.0.2)
project(ros_rearwheel_feedback)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  message_generation
)

## Generate messages in the 'msg' folder
add_message_files(FILES rearwheel_feedback.msg)

## Generate added messages and services with any dependencies listed here
generate_messages(DEPENDENCIES std_msgs)

catkin_package(CATKIN_DEPENDS roscpp rospy std_msgs message_runtime)

include_directories(include ${catkin_INCLUDE_DIRS})

#包含一些头文件，让clion有自动补全功能
include_directories(../../../devel/include) #include rearwheel_feedback msg
include_directories(../../include/eigen ../../include)

add_executable(n_rearwheel_feedback src/n_rearwheel_feedback.cpp
                                    src/rearwheel_feedback.cpp)
target_link_libraries(n_rearwheel_feedback ${catkin_LIBRARIES})
add_dependencies(n_rearwheel_feedback ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

